package com.sunkey.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sunkey.dao.UserDao;
import com.sunkey.domain.User;
import com.sunkey.service.UserService;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public User getUser() {

        return userDao.findUser("sunkey");
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

}
